﻿CREATE TABLE [steve].[Content] (
    [ContentId] UNIQUEIDENTIFIER NOT NULL,
    [ContentTypeName] VARCHAR (50)     NOT NULL,
	[Path] varchar(255) not null,
    [Language] VARCHAR (10)     NOT NULL,
    [LatestRevisionNumber] INT NOT NULL,
	[LatestApprovedRevisionNumber] int null,
    [SystemName] varchar(50) null,
	[SiteUrlId] uniqueidentifier null,
    [ExternalId] VARCHAR (100)     NULL,
    [CreateDate] DATETIME2(7)         NOT NULL,
	[CreateMembershipId] uniqueidentifier null
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Content header data (this data does not have revision history).', @level0type = N'SCHEMA', @level0name = N'steve', @level1type = N'TABLE', @level1name = N'Content';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary key', @level0type = N'SCHEMA', @level0name = N'steve', @level1type = N'TABLE', @level1name = N'Content', @level2type = N'COLUMN', @level2name = N'ContentId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Link to ContentType table', @level0type = N'SCHEMA', @level0name = N'steve', @level1type = N'TABLE', @level1name = N'Content', @level2type = N'COLUMN', @level2name = N'ContentTypeName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Id of content in external system (typically used with auto generated content)', @level0type = N'SCHEMA', @level0name = N'steve', @level1type = N'TABLE', @level1name = N'Content', @level2type = N'COLUMN', @level2name = N'ExternalId';

